package com.by.course.entity.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author yangjie
 * @version 1.0
 * @date 2021/6/29 10:51 上午
 */
@ApiModel("列表")
@Data
public class PageListUtil<T> {
    @ApiModelProperty("数据")
    private List<T> list;
    @ApiModelProperty("总条数")
    private Integer total;

    public PageListUtil() {
    }

    public PageListUtil(List<T> list, Integer total) {
        this.list = list;
        this.total = total;
    }
}
